package flex.cc.uac.service;

import com.baomidou.mybatisplus.extension.service.IService;
import flex.cc.uac.entity.UacRoleActionEntity;

import java.util.List;
import java.util.Set;

/**
 * 角色权限中间表
 *
 * @author zhangzk
 * @email zhangzhikai@sinosoft.com.cn
 * @date 2020-07-12 00:00:12
 */
public interface UacRoleActionService extends IService<UacRoleActionEntity> {

    /**
     * 根据角色ID删除关联关系
     * @param roleId
     */
    void deleteByRoleId(Long roleId);

    void deleteByRoleIdList(List<Long> roleIdList);

    List<UacRoleActionEntity> listByRoleId(Long roleId);

    void insert(Long roleId, Set<Long> actionIdList);
}

